

package com.example.admin.base.security.service;


import com.example.admin.base.security.entity.SysUserTokenEntity;
import com.example.commons.service.BaseService;
import com.example.commons.utils.Result;

/**
 * 用户Token
 * 
 * @author ZSJ
 */
public interface SysUserTokenService extends BaseService<SysUserTokenEntity> {

	/**
	 * 生成token
	 * @param userId  用户ID
	 */
	Result createToken(Long userId);

	/**
	 * 退出，修改token值
	 * @param userId  用户ID
	 */
	void logout(Long userId);

}